package tr.edu.metu.is.mega.server.validation;

/**
 * Data structure class for validation error.
 */
public class ValidationError {

    private String clazz;

    private String field;

    private String message;

    /**
     * Default constructor.
     */
    public ValidationError() {
    }

    /**
     * Default constructor.
     * 
     * @param clazz class name
     * @param field field name
     * @param message error message
     */
    public ValidationError(String clazz, String field, String message) {
        super();
        this.clazz = clazz;
        this.field = field;
        this.message = message;
    }

    /**
     * Returns the clazz.
     * 
     * @return the clazz
     */
    public String getClazz() {
        return clazz;
    }

    /**
     * Sets the clazz value.
     * 
     * @param clazz the clazz to set
     */
    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    /**
     * Returns the field.
     * 
     * @return the field
     */
    public String getField() {
        return field;
    }

    /**
     * Sets the field value.
     * 
     * @param field the field to set
     */
    public void setField(String field) {
        this.field = field;
    }

    /**
     * Returns the message.
     * 
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * Sets the message value.
     * 
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

}
